package AOP.aop;

import IoC.扫描装配.User;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;

/**
 * @author zyl
 * @Description
 * @since 2024/1/22 15:09
 */
@Service
public class UserServiceimpl implements UserService{

    @Override
    public void printUser(User user) {
        if (ObjectUtils.isEmpty(user)){
            throw new RuntimeException("ddd");
        }
        System.out.println("打印user");
    }
}
